<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>button</title>
</head>
<body>
	<input type="button" value="ger获取数据" id= "getData">
	<script src = "myAjax.js"></script>
	<script>
		var getdata = document.getElementById("getData");
		getdata.onclick = function(){
			ajax.get("/getData",function(data){
				alert(data)
			})
		}




	</script>

</body>
</html>